package com.xxgc.cloud.auth.springcloudauth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mr.Abel
 * @since 2022-12-08
 */
@Getter
@Setter
  @TableName("users_and_roles")
@ApiModel(value = "UsersAndRoles对象", description = "")
public class UsersAndRoles implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("用户角色关系表id")
      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("用户id")
      private Long userId;

      @ApiModelProperty("角色id")
      private Long roleId;


}
